//
//  JGSideHelper.m
//  JGShowSidePageDemo
//
//  Created by mac on 15/11/2.
//  Copyright (c) 2015年 Free. All rights reserved.
//

#import "JGSideHelper.h"
#import "AppDelegate.h"

AppDelegate *FindAppDelegate()
{
    return (AppDelegate *)[[UIApplication sharedApplication] delegate];
}

@implementation JGSideHelper

+ (UILabel *)commonLabelWithFrame:(CGRect)frame font:(UIFont*)font textColor:(UIColor*)color lineBreakMode:(NSLineBreakMode)lineBreakMode {
    UILabel *label = [[UILabel alloc] initWithFrame:frame];
    label.textColor = color;
    label.font = font;
    label.backgroundColor = [UIColor clearColor];
    label.lineBreakMode = lineBreakMode;
    return label;
}

@end